<template>
  <div class="q-pa-md">
    <div class="q-gutter-sm">
      <t-radio v-model="color" val="teal" label="Teal" color="teal" />
      <t-radio v-model="color" val="orange" label="Orange" color="orange" />
      <t-radio v-model="color" val="red" label="Red" color="red" />
      <t-radio v-model="color" val="cyan" label="Cyan" color="cyan" />
    </div>
    <div class="q-gutter-sm">
      <t-radio
        keep-color
        v-model="color"
        val="teal"
        label="Teal"
        color="teal"
      />
      <t-radio
        keep-color
        v-model="color"
        val="orange"
        label="Orange"
        color="orange"
      />
      <t-radio keep-color v-model="color" val="red" label="Red" color="red" />
      <t-radio
        keep-color
        v-model="color"
        val="cyan"
        label="Cyan"
        color="cyan"
      />
    </div>
    <div class="q-px-sm q-mt-sm">
      Your selection is: <strong>{{ color }}</strong>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        color: ref('cyan'),
      };
    },
  };
</script>
